<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset='utf-8'>
    <meta name="author" content="order by dede58.com"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>我的运单</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" type="text/css" href="css/base.css"/>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.js"></script>
</head>

<body>
<!--header star-->
<div class="header clearfix">
    <div class="top clearfix">
        <div class="topctent clearfix">
            <div class="left clearfix fl">
                您好，欢迎登录快递派发司机系统
            </div>
            <div class="right clearfix fr">
                <div class="zuo clearfix fl">
                    <ul class="clearfix fl">
                        <li>
                            <span class="fl"></span>
                            <a href="center.jsp" class="fl">个人中心</a>
                            <span class="fl"></span>
                        </li>
                        <li>
                            <a href="register.jsp">
                                免费注册
                            </a>
                        </li>
                        <li>
                            <a href="loginOut.do">
                                退出登录
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="shopcar-btn clearfix fl">

                </div>
                <div class="fenxiang clearfix fl">
                    <span class="fl">分享到：</span>
                    <ul class="clearfix fl">
                        <li>
                            <a href="#"><img src="images/sina.png"/></a>
                        </li>
                        <li>
                            <a href="#"><img src="images/qq.png"/></a>
                        </li>
                        <li>
                            <a href="#"><img src="images/wechat.png"/></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="bottom clearfix">
        <div class="logo clearfix">
            <a href="index.jsp"></a>
        </div>

    </div>

</div>
<!--header end-->

<!--navbar star-->
<div class="navbar clearfix">
    <div class="content clearfix">
        <ul>
            <li class>
                <a href="index.jsp">首页</a>
            </li>
            <li>
                <a href="queryAllWaybillByPage.do">运单查询</a>
            </li>

        </ul>
    </div>
</div>
<!--navbar end-->

<!--Main-wrap-->
<div class="main-wrap graybg clearfix">
    <div class="wrapper pt40 pb40 clearfix">
        <div class="fr slide-show white-box">

            <div class="dark-tit clearfix">
                <h3 class="fl fs26">运单查询</h3>

                <p class="fr slide-t-nav">
                    <a href="queryAllWaybillByPage.do" class="fs14 radius3">待收取</a>
                    <a href="queryAllWaybillByPage1.do" class="on fs14 radius3">在库中</a>
                </p>
            </div>


            <table class="table_1" border="1">
                <tr>
                    <th width="12%">运单编号</th>
                    <th width="7%">快递类型</th>
                    <th width="7%">寄件人</th>
                    <th width="10%">寄件人电话</th>
                    <th width="10%">寄件人地址</th>
                    <th width="7%">收件人</th>
                    <th width="10%">收件人电话</th>
                    <th width="10%">收件人地址</th>
                    <th width="5%">邮费</th>
                    <th width="7%">仓库</th>
                    <th width="8%" rowspan="2">操作</th>
                </tr>
            </table>

            <table class="table_1 mt15">
                <c:forEach items="${pageInfo.list}" var="w">
                    <tr>
                        <td width="12%">${w.waybillNo}</td>
                        <td width="7%">${w.mailType}</td>
                        <td width="7%">${w.senderName}</td>
                        <td width="10%">${w.senderPhone}</td>
                        <td width="10%">${w.senderAddress}</td>
                        <td width="7%">${w.recipientName}</td>
                        <td width="10%">${w.recipientPhone}</td>
                        <td width="10%">${w.recipientAddress}</td>
                        <td width="5%">${w.mailCost}</td>
                        <td width="7%">${w.warehouseName}</td>
                        <td width="8%">
                            <button onclick="modifyWaybillStatus(${w.waybillNo})">接受运单</button>
                        </td>
                    </tr>
                </c:forEach>
            </table>

            当前第${pageInfo.pageNum}页,一共${pageInfo.pageSize}页
            <div class="tab-pages">
                <a href="queryAllWaybillByPage1.do?pageNum=1&pageSize=${pageInfo.pageSize}"
                   class="tab-prev tab-btn">首页</a>
                <a href="${pageContext.request.contextPath}/driver/queryAllWaybillByPage1.do?pageNum=${pageInfo.pageNum-1}&pageSize=${pageInfo.pageSize}"
                   class="tab-prev tab-btn">上一页</a>
                <c:forEach begin="1" end="${pageInfo.pages}" var="index">
                    <a href="queryAllWaybillByPage1.do?pageNum=${index}&pageSize=${pageInfo.pageSize}"
                       class="page-btn">${index}</a>
                </c:forEach>
                <a href="${pageContext.request.contextPath}/driver/queryAllWaybillByPage1.do?pageNum=${pageInfo.pageNum+1}&pageSize=${pageInfo.pageSize}"
                   class="tab-next tab-btn">下一页</a>
                <a href="${pageContext.request.contextPath}/driver/queryAllWaybillByPage1.do?pageNum=${pageInfo.pages}&pageSize=${pageInfo.pageSize}"
                   class="tab-next tab-btn">尾页</a>
            </div>

        </div>

    </div>
</div>
<!--/end-->
<script>
    function modifyWaybillStatus(waybillNo) {
        $.ajax({
            url: "modifyWaybillStatus1.do",
            type: "GET",
            data: {"waybillNo": waybillNo},
            dataType: "text",
            success: function (data) {
                if (data == "1") {
                    alert("接受成功")
                    window.location.reload();
                } else {
                    alert(("失败"))
                }
            }
        });
    }
</script>

<!--footer star-->
<div class="footer clearfix">
    <div class="content clearfix">
        <div class="top clearfix">
            <div class="list clearfix fl box-s">
                <div class="part icon1 box-s">
                    <h3>专业</h3>
                    <p>拥有资深艺术顾问和先进交易平台，安全物流，快捷支付。</p>
                </div>
            </div>
            <div class="list clearfix fl box-s">
                <div class="part icon2 box-s">
                    <h3>保真</h3>
                    <p>阵容强大的艺术评鉴团，确保平台上的藏品货真价实。</p>
                </div>
            </div>
            <div class="list clearfix fl box-s">
                <div class="part icon3 box-s">
                    <h3>保值</h3>
                    <p>为您精选具备艺术价值的作品，助您的资产保值、增值。</p>
                </div>
            </div>
        </div>
        <div class="bottom clearfix">
            <div class="left clearfix fl">
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>新手指南</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="scgmlc.html">商城购买流程</a></li>
                            <li><a href="cjwt.html">常见问题</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>账户管理</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="zhcz.html">账户充值</a></li>
                            <li><a href="zhtx.html">账户提现</a></li>
                            <li><a href="zffs.html">支付方式</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>服务合作</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="friend-link.html">友情链接</a></li>
                            <li><a href="ysjrz.html">艺术家入驻</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>关于我们</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="gsjj.html">公司简介</a></li>
                            <li><a href="contact.html">联系我们</a></li>
                            <li><a href="jrwm.html">加入我们</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>售后服务</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="wlsm.html">物流说明</a></li>
                            <li><a href="mzsm.html">免责声明</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="middle clearfix fl">
                <ul>
                    <li><img src="upload/ewm.jpg"/></li>
                    <li><img src="upload/ewm.jpg"/></li>
                </ul>
            </div>
            <div class="right clearfix fr">
                <p class="bt">免费咨询热线：</p>
                <p class="tel">400-000-0000</p>
                <p class="fu-bt">(周一到周五8:00-22:00)</p>
            </div>
        </div>
    </div>
    <div class="banquan clearfix ta-center">
        Copyright © 2020 XXX文化(chunlingwenhua). All Rights Reserved.
    </div>
</div>
<!--footer end-->
</body>

</html>